{smcl}
{txt}{sf}{ul off}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\J.PARK\Dropbox\Discrimination Project_for me\Organizational Diversity\2023 Version_Merging\FINAL\CFA_2018.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 8 Aug 2024, 13:24:47
{txt}
{com}. 
. import delimited "C:\Users\J.PARK\Dropbox\DISCRIMINATION PROJECT\FEVS\FEVS_2010-2019\FEVS_2018_PRDF.csv"
{res}{txt}(encoding automatically selected: ISO-8859-1)
{res}{text}(81 vars, 598,003 obs)

{com}. 
. drop if q17=="X"
{txt}(22,712 observations deleted)

{com}. drop if q17==""
{txt}(2,562 observations deleted)

{com}. drop if q37=="X"
{txt}(25,791 observations deleted)

{com}. drop if q37==""
{txt}(9,739 observations deleted)

{com}. drop if q38=="X"
{txt}(23,064 observations deleted)

{com}. drop if q38==""
{txt}(2,597 observations deleted)

{com}. drop if q15=="X"
{txt}(4,013 observations deleted)

{com}. drop if q15==""
{txt}(1,385 observations deleted)

{com}. drop if q22=="X"
{txt}(18,778 observations deleted)

{com}. drop if q22==""
{txt}(2,597 observations deleted)

{com}. drop if q25=="X"
{txt}(10,687 observations deleted)

{com}. drop if q25==""
{txt}(1,467 observations deleted)

{com}. drop if q33=="X"
{txt}(9,863 observations deleted)

{com}. drop if q33==""
{txt}(1,836 observations deleted)

{com}. drop if q48==.
{txt}(3,658 observations deleted)

{com}. drop if q49==.
{txt}(621 observations deleted)

{com}. destring q17, replace
{txt}q17: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q37, replace
{txt}q37: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q38, replace
{txt}q38: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q15, replace
{txt}q15: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q22, replace
{txt}q22: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q25, replace
{txt}q25: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q33, replace
{txt}q33: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. drop if q55=="X"
{txt}(8,774 observations deleted)

{com}. drop if q55==""
{txt}(5,231 observations deleted)

{com}. drop if q45=="X"
{txt}(11,247 observations deleted)

{com}. drop if q45==""
{txt}(817 observations deleted)

{com}. drop if q34=="X"
{txt}(7,148 observations deleted)

{com}. drop if q34==""
{txt}(1,073 observations deleted)

{com}. destring q55, replace
{txt}q55: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q45, replace
{txt}q45: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q34, replace
{txt}q34: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. drop if dsuper=="X"
{txt}(0 observations deleted)

{com}. drop if dsuper==""
{txt}(35,116 observations deleted)

{com}. drop if dsex=="X"
{txt}(0 observations deleted)

{com}. drop if dsex==""
{txt}(9,808 observations deleted)

{com}. drop if dminority=="X"
{txt}(0 observations deleted)

{com}. drop if dminority==""
{txt}(5,264 observations deleted)

{com}. gen minority = 0 if dminority=="B"
{txt}(123,698 missing values generated)

{com}. replace minority = 1 if dminority=="A"
{txt}(123,698 real changes made)

{com}. gen gender = 1 if dsex == "B"
{txt}(215,212 missing values generated)

{com}. replace gender = 0 if dsex == "A"
{txt}(215,212 real changes made)

{com}. gen supervisor = 1 if dsuper == "B" 
{txt}(288,076 missing values generated)

{com}. replace supervisor = 0 if dsuper == "A"
{txt}(288,076 real changes made)

{com}. 
. svyset [pweight=postwt]

{txt}Sampling weights:{col 19}{res}postwt
             {txt}VCE:{col 19}{res}linearized
     {txt}Single unit:{col 19}{res}missing
        {txt}Strata 1:{col 19}<one>
 Sampling unit 1:{col 19}<observations>
           FPC 1:{col 19}<zero>
{p2colreset}{...}

{com}. 
. svy linearized : sem (JUSTICE -> DISTRIBUTIVE, ) (JUSTICE -> PROCEDURAL, ) (JUSTICE -> INTERPERSONAL, ) (DISTRIBUTIVE -> q22, ) (DISTRIBUTIVE -> q25, ) (DISTRIBUTIVE -> q33, ) (PROCEDURAL -> q15, ) (PROCEDURAL -> q17, ) (PROCEDURAL -> q37, ) (PROCEDURAL -> q38, )(INTERPERSONAL -> q48, ) (INTERPERSONAL -> q49, ), standardized latent(JUSTICE DISTRIBUTIVE PROCEDURAL INTERPERSONAL ) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 51}{lalign 15:Number of obs}{col 66} = {res}{ralign 10:372,155}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 51}{lalign 15:Population size}{col 66} = {res}{ralign 10:932,465.16}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:372,155}{txt}{col 51}{lalign 15:Design df}{col 66} = {res}{ralign 10:372,154}

{p 0 7}{space 1}{text:( 1)}{space 1} [q22]DISTRIBUTIVE = 1{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} [q15]PROCEDURAL = 1{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} [q48]INTERPERSONAL = 1{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} [DISTRIBUTIVE]JUSTICE = 1{p_end}
{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}  Linearized
{col 1}       Standardized{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural         {col 21}{txt}{c |}
{space 2}{col 3}DISTRIBUTIVE     {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .8500096{col 33}{space 2} .0012644{col 44}{space 1}  672.27{col 53}{space 3}0.000{col 61}{space 4} .8475314{col 74}{space 3} .8524877
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}PROCEDURAL       {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .9826205{col 33}{space 2} .0013176{col 44}{space 1}  745.75{col 53}{space 3}0.000{col 61}{space 4}  .980038{col 74}{space 3}  .985203
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}INTERPERSONAL    {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .7024193{col 33}{space 2} .0014861{col 44}{space 1}  472.65{col 53}{space 3}0.000{col 61}{space 4} .6995065{col 74}{space 3} .7053321
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement        {col 21}{txt}{c |}
{space 2}{col 3}q22              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8447303{col 33}{space 2} .0009064{col 44}{space 1}  931.98{col 53}{space 3}0.000{col 61}{space 4} .8429539{col 74}{space 3} .8465068
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.465624{col 33}{space 2} .0034507{col 44}{space 1}  714.53{col 53}{space 3}0.000{col 61}{space 4} 2.458861{col 74}{space 3} 2.472388
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q25              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8351644{col 33}{space 2} .0009644{col 44}{space 1}  866.03{col 53}{space 3}0.000{col 61}{space 4} .8332743{col 74}{space 3} .8370545
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.640097{col 33}{space 2} .0039892{col 44}{space 1}  661.82{col 53}{space 3}0.000{col 61}{space 4} 2.632279{col 74}{space 3} 2.647916
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q33              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .7269872{col 33}{space 2} .0012143{col 44}{space 1}  598.68{col 53}{space 3}0.000{col 61}{space 4} .7246071{col 74}{space 3} .7293672
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.312832{col 33}{space 2} .0029115{col 44}{space 1}  794.39{col 53}{space 3}0.000{col 61}{space 4} 2.307126{col 74}{space 3} 2.318539
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q15              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .6352866{col 33}{space 2} .0017291{col 44}{space 1}  367.41{col 53}{space 3}0.000{col 61}{space 4} .6318976{col 74}{space 3} .6386755
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.403252{col 33}{space 2} .0065311{col 44}{space 1}  521.09{col 53}{space 3}0.000{col 61}{space 4} 3.390452{col 74}{space 3} 3.416053
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q17              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .7724068{col 33}{space 2} .0011851{col 44}{space 1}  651.78{col 53}{space 3}0.000{col 61}{space 4} .7700841{col 74}{space 3} .7747295
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.129065{col 33}{space 2} .0056889{col 44}{space 1}  550.03{col 53}{space 3}0.000{col 61}{space 4} 3.117915{col 74}{space 3} 3.140215
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q37              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8354195{col 33}{space 2} .0010394{col 44}{space 1}  803.78{col 53}{space 3}0.000{col 61}{space 4} .8333823{col 74}{space 3} .8374566
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.842481{col 33}{space 2} .0047012{col 44}{space 1}  604.63{col 53}{space 3}0.000{col 61}{space 4} 2.833267{col 74}{space 3} 2.851696
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q38              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8200205{col 33}{space 2} .0011415{col 44}{space 1}  718.35{col 53}{space 3}0.000{col 61}{space 4} .8177832{col 74}{space 3} .8222579
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.473114{col 33}{space 2} .0067791{col 44}{space 1}  512.33{col 53}{space 3}0.000{col 61}{space 4} 3.459827{col 74}{space 3} 3.486401
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q48              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2}  .942524{col 33}{space 2} .0007855{col 44}{space 1} 1199.91{col 53}{space 3}0.000{col 61}{space 4} .9409844{col 74}{space 3} .9440635
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.953568{col 33}{space 2} .0083851{col 44}{space 1}  471.50{col 53}{space 3}0.000{col 61}{space 4} 3.937134{col 74}{space 3} 3.970003
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q49              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9181582{col 33}{space 2}  .000858{col 44}{space 1} 1070.10{col 53}{space 3}0.000{col 61}{space 4} .9164765{col 74}{space 3} .9198398
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 4.349075{col 33}{space 2} .0101853{col 44}{space 1}  427.00{col 53}{space 3}0.000{col 61}{space 4} 4.329113{col 74}{space 3} 4.369038
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}var(e.q22){c |}{col 21}{res}{space 2} .2864307{col 33}{space 2} .0015313{col 61}{space 4}  .283445{col 74}{space 3} .2894477
{txt}{space 10}var(e.q25){c |}{col 21}{res}{space 2} .3025004{col 33}{space 2} .0016108{col 61}{space 4} .2993597{col 74}{space 3} .3056741
{txt}{space 10}var(e.q33){c |}{col 21}{res}{space 2} .4714897{col 33}{space 2} .0017656{col 61}{space 4} .4680419{col 74}{space 3} .4749629
{txt}{space 10}var(e.q15){c |}{col 21}{res}{space 2}  .596411{col 33}{space 2} .0021969{col 61}{space 4} .5921205{col 74}{space 3} .6007325
{txt}{space 10}var(e.q17){c |}{col 21}{res}{space 2} .4033877{col 33}{space 2} .0018307{col 61}{space 4} .3998155{col 74}{space 3} .4069918
{txt}{space 10}var(e.q37){c |}{col 21}{res}{space 2} .3020743{col 33}{space 2} .0017366{col 61}{space 4} .2986897{col 74}{space 3} .3054973
{txt}{space 10}var(e.q38){c |}{col 21}{res}{space 2} .3275663{col 33}{space 2} .0018722{col 61}{space 4} .3239174{col 74}{space 3} .3312563
{txt}{space 10}var(e.q48){c |}{col 21}{res}{space 2} .1116486{col 33}{space 2} .0014807{col 61}{space 4} .1087839{col 74}{space 3} .1145888
{txt}{space 10}var(e.q49){c |}{col 21}{res}{space 2} .1569856{col 33}{space 2} .0015756{col 61}{space 4} .1539277{col 74}{space 3} .1601043
{txt}{space 1}var(e.DISTRIBUTIVE){c |}{col 21}{res}{space 2} .2774837{col 33}{space 2} .0021495{col 61}{space 4} .2733027{col 74}{space 3} .2817288
{txt}{space 3}var(e.PROCEDURAL){c |}{col 21}{res}{space 2}  .034457{col 33}{space 2} .0025895{col 61}{space 4} .0297378{col 74}{space 3} .0399251
{txt}var(e.INTERPERSONAL){c |}{col 21}{res}{space 2} .5066071{col 33}{space 2} .0020878{col 61}{space 4} .5025316{col 74}{space 3} .5107157
{txt}{space 8}var(JUSTICE){c |}{col 21}{res}{space 2}        1{col 33}{space 2}        .{col 61}{space 4}        .{col 74}{space 3}        .
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.041}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.969}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict justice, latent(JUSTICE)
{res}{txt}
{com}. 
. svy linearized : sem (DIVERSITY -> q34, ) (DIVERSITY -> q45, ) (DIVERSITY -> q55, ), standardized latent(DIVERSITY) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 51}{lalign 15:Number of obs}{col 66} = {res}{ralign 10:372,155}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 51}{lalign 15:Population size}{col 66} = {res}{ralign 10:932,465.16}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:372,155}{txt}{col 51}{lalign 15:Design df}{col 66} = {res}{ralign 10:372,154}

{p 0 7}{space 1}{text:( 1)}{space 1} [q34]DIVERSITY = 1{p_end}
{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 15}{c |}{col 27}  Linearized
{col 1} Standardized{col 15}{c |} Coefficient{col 27}  std. err.{col 39}      t{col 47}   P>|t|{col 55}     [95% con{col 68}f. interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement  {col 15}{txt}{c |}
{space 2}{col 3}q34        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .6841396{col 27}{space 2} .0018017{col 38}{space 1}  379.73{col 47}{space 3}0.000{col 55}{space 4} .6806084{col 68}{space 3} .6876708
{txt}{space 8}_cons {c |}{col 15}{res}{space 2}  3.38864{col 27}{space 2}  .006015{col 38}{space 1}  563.37{col 47}{space 3}0.000{col 55}{space 4} 3.376851{col 68}{space 3} 3.400429
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q45        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .7525508{col 27}{space 2} .0017365{col 38}{space 1}  433.36{col 47}{space 3}0.000{col 55}{space 4} .7491472{col 68}{space 3} .7559544
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.750125{col 27}{space 2} .0073758{col 38}{space 1}  508.43{col 47}{space 3}0.000{col 55}{space 4} 3.735669{col 68}{space 3} 3.764582
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q55        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .8115968{col 27}{space 2} .0016079{col 38}{space 1}  504.75{col 47}{space 3}0.000{col 55}{space 4} .8084454{col 68}{space 3} .8147483
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.647051{col 27}{space 2} .0071746{col 38}{space 1}  508.33{col 47}{space 3}0.000{col 55}{space 4} 3.632989{col 68}{space 3} 3.661113
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}var(e.q34){c |}{col 15}{res}{space 2}  .531953{col 27}{space 2} .0024652{col 55}{space 4} .5271432{col 68}{space 3} .5368067
{txt}{space 4}var(e.q45){c |}{col 15}{res}{space 2} .4336673{col 27}{space 2} .0026137{col 55}{space 4} .4285747{col 68}{space 3} .4388204
{txt}{space 4}var(e.q55){c |}{col 15}{res}{space 2} .3413106{col 27}{space 2} .0026099{col 55}{space 4} .3362333{col 68}{space 3} .3464645
{txt}var(DIVERSITY){c |}{col 15}{res}{space 2}        1{col 27}{space 2}        .{col 55}{space 4}        .{col 68}{space 3}        .
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.000}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.805}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict diversity, latent(DIVERSITY)
{res}{txt}
{com}. 
. keep if agency =="AM" | agency =="IB" | agency =="FQ"| agency =="ED" | agency =="DN" | agency =="HU" | agency =="ST" | agency =="EP"  | agency =="EE"| agency =="FC" | agency =="DR" | agency =="FT" | agency =="GS" | agency =="NQ" | agency =="NN" | agency =="CU" | agency =="SN" | agency =="NL" | agency =="NF" | agency =="NU" | agency =="OM" | agency =="BG" | agency =="RR" | agency =="SE" | agency =="SB" | agency =="SZ" | level1 =="DD34" | level1 =="DD10" | level1 =="DD63" | level1 =="DD35" | level1 =="DD04" | level1 =="DD07" | level1 =="DD27" | level1 =="DD26" | level1 =="DD60" | level1 =="CM03" | level1 =="CM06" | level1 =="CM08" | level1 =="CM09" | level1 =="CM14" | level1 =="DD16" | level1 =="HE02" | level1 =="HE04" | level1 =="HE05" | level1 =="HE06" | level1 =="HE07" | level1 =="HE08" | level1 =="HE09" | level1 =="HE10" | level1 =="HE12" | level1 =="HS04" | level1 =="HS05" | level1 =="HS14" | level1 =="HS01" | level1 =="HS03" | level1 =="HS02" | level1 =="HS06" | level1 =="HS12" | level1 =="HS10" | level1 =="DJAT" | level1 =="DJBP" | level1 =="DJEA" | level1 =="DJIR" | level1 =="DJOA" | level1 =="DJFB" | level1 =="DJMS" | level1 =="DJTP" | level1 =="DL03" | level1 =="DL02" | level1 =="DL10" | level1 =="DL09" | level1 =="DL04" | level1 =="DL06" | level1 =="DL05" | level1 =="DL11" | agency =="AF" | agency =="AR" | level1 =="IN03" | level1 =="IN01" | level1 =="IN02" | level1 =="IN07" | level1 =="IN05" | level1 =="IN06" | level1 =="IN14" | agency =="NV" | level1 =="TRAI" | level1 =="TR91" | level1 =="TRFD" | level1 =="TR93" | level1 =="TRAJ" | level1 =="TRTG" | level1 =="TRAD" | level1 =="TD03" | level1 =="TD04" | level1 =="TD05" | level1 =="DD01"
{txt}(41,300 observations deleted)

{com}. 
. svy linearized : sem (JUSTICE -> DISTRIBUTIVE, ) (JUSTICE -> PROCEDURAL, ) (JUSTICE -> INTERPERSONAL, ) (DISTRIBUTIVE -> q22, ) (DISTRIBUTIVE -> q25, ) (DISTRIBUTIVE -> q33, ) (PROCEDURAL -> q15, ) (PROCEDURAL -> q17, ) (PROCEDURAL -> q37, ) (PROCEDURAL -> q38, )(INTERPERSONAL -> q48, ) (INTERPERSONAL -> q49, ), standardized latent(JUSTICE DISTRIBUTIVE PROCEDURAL INTERPERSONAL ) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 51}{lalign 15:Number of obs}{col 66} = {res}{ralign 10:330,855}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 51}{lalign 15:Population size}{col 66} = {res}{ralign 10:860,092.14}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:330,855}{txt}{col 51}{lalign 15:Design df}{col 66} = {res}{ralign 10:330,854}

{p 0 7}{space 1}{text:( 1)}{space 1} [q22]DISTRIBUTIVE = 1{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} [q15]PROCEDURAL = 1{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} [q48]INTERPERSONAL = 1{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} [DISTRIBUTIVE]JUSTICE = 1{p_end}
{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}  Linearized
{col 1}       Standardized{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural         {col 21}{txt}{c |}
{space 2}{col 3}DISTRIBUTIVE     {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .8518652{col 33}{space 2} .0013276{col 44}{space 1}  641.68{col 53}{space 3}0.000{col 61}{space 4} .8492632{col 74}{space 3} .8544671
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}PROCEDURAL       {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .9827326{col 33}{space 2} .0013782{col 44}{space 1}  713.07{col 53}{space 3}0.000{col 61}{space 4} .9800314{col 74}{space 3} .9854337
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}INTERPERSONAL    {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .7053573{col 33}{space 2} .0015637{col 44}{space 1}  451.08{col 53}{space 3}0.000{col 61}{space 4} .7022925{col 74}{space 3} .7084221
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement        {col 21}{txt}{c |}
{space 2}{col 3}q22              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8456222{col 33}{space 2} .0009546{col 44}{space 1}  885.81{col 53}{space 3}0.000{col 61}{space 4} .8437511{col 74}{space 3} .8474932
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.459712{col 33}{space 2} .0036424{col 44}{space 1}  675.30{col 53}{space 3}0.000{col 61}{space 4} 2.452573{col 74}{space 3} 2.466851
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q25              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8360387{col 33}{space 2}  .001017{col 44}{space 1}  822.03{col 53}{space 3}0.000{col 61}{space 4} .8340453{col 74}{space 3} .8380321
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.637672{col 33}{space 2} .0042235{col 44}{space 1}  624.53{col 53}{space 3}0.000{col 61}{space 4} 2.629394{col 74}{space 3}  2.64595
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q33              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .7263933{col 33}{space 2} .0012843{col 44}{space 1}  565.61{col 53}{space 3}0.000{col 61}{space 4} .7238762{col 74}{space 3} .7289104
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.313467{col 33}{space 2} .0030913{col 44}{space 1}  748.39{col 53}{space 3}0.000{col 61}{space 4} 2.307408{col 74}{space 3} 2.319526
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q15              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .6353714{col 33}{space 2} .0018213{col 44}{space 1}  348.86{col 53}{space 3}0.000{col 61}{space 4} .6318018{col 74}{space 3}  .638941
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.402086{col 33}{space 2} .0069197{col 44}{space 1}  491.65{col 53}{space 3}0.000{col 61}{space 4} 3.388524{col 74}{space 3} 3.415649
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q17              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .7731415{col 33}{space 2} .0012526{col 44}{space 1}  617.22{col 53}{space 3}0.000{col 61}{space 4} .7706864{col 74}{space 3} .7755966
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  3.13777{col 33}{space 2} .0060723{col 44}{space 1}  516.74{col 53}{space 3}0.000{col 61}{space 4} 3.125869{col 74}{space 3} 3.149672
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q37              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8362363{col 33}{space 2}  .001091{col 44}{space 1}  766.51{col 53}{space 3}0.000{col 61}{space 4} .8340981{col 74}{space 3} .8383746
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.835606{col 33}{space 2} .0049603{col 44}{space 1}  571.66{col 53}{space 3}0.000{col 61}{space 4} 2.825884{col 74}{space 3} 2.845328
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q38              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8206129{col 33}{space 2} .0012019{col 44}{space 1}  682.78{col 53}{space 3}0.000{col 61}{space 4} .8182573{col 74}{space 3} .8229685
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  3.46687{col 33}{space 2} .0071561{col 44}{space 1}  484.46{col 53}{space 3}0.000{col 61}{space 4} 3.452844{col 74}{space 3} 3.480896
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q48              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9430621{col 33}{space 2} .0008281{col 44}{space 1} 1138.89{col 53}{space 3}0.000{col 61}{space 4} .9414392{col 74}{space 3} .9446851
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.943378{col 33}{space 2} .0088363{col 44}{space 1}  446.27{col 53}{space 3}0.000{col 61}{space 4} 3.926059{col 74}{space 3} 3.960697
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q49              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9175826{col 33}{space 2} .0009055{col 44}{space 1} 1013.31{col 53}{space 3}0.000{col 61}{space 4} .9158077{col 74}{space 3} .9193574
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 4.342009{col 33}{space 2} .0107535{col 44}{space 1}  403.78{col 53}{space 3}0.000{col 61}{space 4} 4.320933{col 74}{space 3} 4.363086
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}var(e.q22){c |}{col 21}{res}{space 2} .2849232{col 33}{space 2} .0016145{col 61}{space 4} .2817763{col 74}{space 3} .2881052
{txt}{space 10}var(e.q25){c |}{col 21}{res}{space 2} .3010392{col 33}{space 2} .0017006{col 61}{space 4} .2977245{col 74}{space 3} .3043909
{txt}{space 10}var(e.q33){c |}{col 21}{res}{space 2} .4723527{col 33}{space 2} .0018657{col 61}{space 4}   .46871{col 74}{space 3} .4760237
{txt}{space 10}var(e.q15){c |}{col 21}{res}{space 2} .5963032{col 33}{space 2} .0023144{col 61}{space 4} .5917843{col 74}{space 3} .6008566
{txt}{space 10}var(e.q17){c |}{col 21}{res}{space 2} .4022522{col 33}{space 2} .0019369{col 61}{space 4} .3984738{col 74}{space 3} .4060664
{txt}{space 10}var(e.q37){c |}{col 21}{res}{space 2} .3007088{col 33}{space 2} .0018246{col 61}{space 4} .2971538{col 74}{space 3} .3043063
{txt}{space 10}var(e.q38){c |}{col 21}{res}{space 2} .3265944{col 33}{space 2} .0019725{col 61}{space 4} .3227511{col 74}{space 3} .3304835
{txt}{space 10}var(e.q48){c |}{col 21}{res}{space 2} .1106338{col 33}{space 2} .0015618{col 61}{space 4} .1076146{col 74}{space 3} .1137376
{txt}{space 10}var(e.q49){c |}{col 21}{res}{space 2} .1580422{col 33}{space 2} .0016618{col 61}{space 4} .1548185{col 74}{space 3} .1613331
{txt}{space 1}var(e.DISTRIBUTIVE){c |}{col 21}{res}{space 2} .2743257{col 33}{space 2} .0022618{col 61}{space 4} .2699283{col 74}{space 3} .2787948
{txt}{space 3}var(e.PROCEDURAL){c |}{col 21}{res}{space 2} .0342367{col 33}{space 2} .0027087{col 61}{space 4} .0293188{col 74}{space 3} .0399795
{txt}var(e.INTERPERSONAL){c |}{col 21}{res}{space 2} .5024711{col 33}{space 2} .0022059{col 61}{space 4} .4981661{col 74}{space 3} .5068133
{txt}{space 8}var(JUSTICE){c |}{col 21}{res}{space 2}        1{col 33}{space 2}        .{col 61}{space 4}        .{col 74}{space 3}        .
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.040}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.970}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict justice2, latent (JUSTICE)
{res}{txt}
{com}. 
. svy linearized : sem (DIVERSITY -> q34, ) (DIVERSITY -> q45, ) (DIVERSITY -> q55, ), standardized latent(DIVERSITY) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 51}{lalign 15:Number of obs}{col 66} = {res}{ralign 10:330,855}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 51}{lalign 15:Population size}{col 66} = {res}{ralign 10:860,092.14}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:330,855}{txt}{col 51}{lalign 15:Design df}{col 66} = {res}{ralign 10:330,854}

{p 0 7}{space 1}{text:( 1)}{space 1} [q34]DIVERSITY = 1{p_end}
{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 15}{c |}{col 27}  Linearized
{col 1} Standardized{col 15}{c |} Coefficient{col 27}  std. err.{col 39}      t{col 47}   P>|t|{col 55}     [95% con{col 68}f. interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement  {col 15}{txt}{c |}
{space 2}{col 3}q34        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .6864177{col 27}{space 2} .0018919{col 38}{space 1}  362.82{col 47}{space 3}0.000{col 55}{space 4} .6827096{col 68}{space 3} .6901258
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.384751{col 27}{space 2} .0063521{col 38}{space 1}  532.85{col 47}{space 3}0.000{col 55}{space 4} 3.372301{col 68}{space 3} 3.397201
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q45        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .7560129{col 27}{space 2} .0018219{col 38}{space 1}  414.96{col 47}{space 3}0.000{col 55}{space 4} .7524421{col 68}{space 3} .7595838
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.732454{col 27}{space 2} .0077413{col 38}{space 1}  482.15{col 47}{space 3}0.000{col 55}{space 4} 3.717281{col 68}{space 3} 3.747626
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q55        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .8134664{col 27}{space 2} .0016837{col 38}{space 1}  483.14{col 47}{space 3}0.000{col 55}{space 4} .8101664{col 68}{space 3} .8167664
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.643259{col 27}{space 2}  .007593{col 38}{space 1}  479.82{col 47}{space 3}0.000{col 55}{space 4} 3.628377{col 68}{space 3} 3.658141
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}var(e.q34){c |}{col 15}{res}{space 2} .5288307{col 27}{space 2} .0025973{col 55}{space 4} .5237645{col 68}{space 3} .5339459
{txt}{space 4}var(e.q45){c |}{col 15}{res}{space 2} .4284445{col 27}{space 2} .0027548{col 55}{space 4} .4230791{col 68}{space 3} .4338779
{txt}{space 4}var(e.q55){c |}{col 15}{res}{space 2} .3382724{col 27}{space 2} .0027393{col 55}{space 4} .3329459{col 68}{space 3} .3436841
{txt}var(DIVERSITY){c |}{col 15}{res}{space 2}        1{col 27}{space 2}        .{col 55}{space 4}        .{col 68}{space 3}        .
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.000}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.807}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict diversity2, latent (DIVERSITY)
{res}{txt}
{com}. 
. sum justice, detail

                   {txt}Factor score (JUSTICE)
{hline 61}
      Percentiles      Smallest
 1%    {res}-2.276364      -2.408836
{txt} 5%    {res}-1.641054      -2.408836
{txt}10%    {res}-1.148097      -2.408836       {txt}Obs         {res}    330,855
{txt}25%    {res} -.408581      -2.408836       {txt}Sum of wgt. {res}    330,855

{txt}50%    {res} .1913089                      {txt}Mean          {res} .0479702
                        {txt}Largest       Std. dev.     {res} .8302671
{txt}75%    {res} .6374593       1.255059
{txt}90%    {res} 1.058908       1.255059       {txt}Variance      {res} .6893435
{txt}95%    {res}  1.21241       1.255059       {txt}Skewness      {res}-.7759025
{txt}99%    {res} 1.255059       1.255059       {txt}Kurtosis      {res} 3.237037
{txt}
{com}. 
. sum justice2, detail

                   {txt}Factor score (JUSTICE)
{hline 61}
      Percentiles      Smallest
 1%    {res}-2.284292      -2.417804
{txt} 5%    {res}-1.647165      -2.417804
{txt}10%    {res} -1.15328      -2.417804       {txt}Obs         {res}    330,855
{txt}25%    {res}-.4114131      -2.417804       {txt}Sum of wgt. {res}    330,855

{txt}50%    {res} .1903396                      {txt}Mean          {res} .0469836
                        {txt}Largest       Std. dev.     {res} .8329821
{txt}75%    {res} .6384665       1.258208
{txt}90%    {res} 1.061587       1.258208       {txt}Variance      {res} .6938591
{txt}95%    {res} 1.215583       1.258208       {txt}Skewness      {res}-.7756628
{txt}99%    {res} 1.258208       1.258208       {txt}Kurtosis      {res} 3.236538
{txt}
{com}. 
. sum diversity, detail

                  {txt}Factor score (DIVERSITY)
{hline 61}
      Percentiles      Smallest
 1%    {res}-2.041339      -2.041339
{txt} 5%    {res}-1.247471      -2.041339
{txt}10%    {res}-.8130877      -2.041339       {txt}Obs         {res}    330,855
{txt}25%    {res}-.2816076      -2.041339       {txt}Sum of wgt. {res}    330,855

{txt}50%    {res} .1527753                      {txt}Mean          {res} .0320039
                        {txt}Largest       Std. dev.     {res} .6435524
{txt}75%    {res}  .477661       .8841468
{txt}90%    {res} .8841468       .8841468       {txt}Variance      {res} .4141597
{txt}95%    {res} .8841468       .8841468       {txt}Skewness      {res}-.9373814
{txt}99%    {res} .8841468       .8841468       {txt}Kurtosis      {res} 3.945395
{txt}
{com}. 
. sum diversity2, detail

                  {txt}Factor score (DIVERSITY)
{hline 61}
      Percentiles      Smallest
 1%    {res}-2.044886      -2.044886
{txt} 5%    {res}-1.248639      -2.044886
{txt}10%    {res}-.8150976      -2.044886       {txt}Obs         {res}    330,855
{txt}25%    {res}-.2804313      -2.044886       {txt}Sum of wgt. {res}    330,855

{txt}50%    {res} .1531103                      {txt}Mean          {res} .0322885
                        {txt}Largest       Std. dev.     {res} .6446941
{txt}75%    {res} .4782715       .8857755
{txt}90%    {res} .8857755       .8857755       {txt}Variance      {res} .4156304
{txt}95%    {res} .8857755       .8857755       {txt}Skewness      {res} -.937616
{txt}99%    {res} .8857755       .8857755       {txt}Kurtosis      {res} 3.945806
{txt}
{com}. 
. corr justice justice2
{txt}(obs=330,855)

             {c |}  justice justice2
{hline 13}{c +}{hline 18}
     justice {c |}{res}   1.0000
    {txt}justice2 {c |}{res}   1.0000   1.0000

{txt}
{com}. 
. corr diversity diversity2 
{txt}(obs=330,855)

             {c |} divers~y divers~2
{hline 13}{c +}{hline 18}
   diversity {c |}{res}   1.0000
  {txt}diversity2 {c |}{res}   1.0000   1.0000

{txt}
{com}. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\J.PARK\Dropbox\Discrimination Project_for me\Organizational Diversity\2023 Version_Merging\FINAL\CFA_2018.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 8 Aug 2024, 13:25:41
{txt}{.-}
{smcl}
{txt}{sf}{ul off}